﻿using Castle.ActiveRecord;
using Castle.ActiveRecord.Linq;

namespace ClientOverflow.DataObjects
{
    /// <summary>
    /// Vote is the base class of all votes in the server side. The vote holds the information about the
    /// voting user. The extending classes defines additional information such as the question or answer
    /// to which the vote relates.
    /// </summary>
    public class Vote<T> : ActiveRecordLinqBase<T>
    {
        [PrimaryKey]
        public int ID { get; set; }

        [BelongsTo]
        public User Voter { get; set; }
    }
}